package com.brspace.qualitycontrol.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 会议申请
 * </p>
 *
 * @author ${author}
 * @since 2021-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MeetApply对象", description="会议申请")
public class MeetApply implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "uuid")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "提交事项")
    private String matter;

    @ApiModelProperty(value = "提交课室")
    private String classroom;

    @ApiModelProperty(value = "经办人")
    private String operator;

    @ApiModelProperty(value = "汇报人")
    private String reporter;

    @ApiModelProperty(value = "填报日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date fillTime;

    @ApiModelProperty(value = "提交事项的基本情况及存在的原因，以及意见")
    private String text;

    @ApiModelProperty(value = "附件")
    private String file;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @ApiModelProperty(value = "事项类型")
    private int type;

    @ApiModelProperty(value = "事项编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long number;

    @ApiModelProperty(value = "会议时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date meetingTime;

    @ApiModelProperty(value = "会议类型")
    private String meetingType;

    @ApiModelProperty(value = "节点ID")
    private Integer nodeId;

    @ApiModelProperty(value = "意见条件")
    private String progress;

    @ApiModelProperty(value = "分管领导")
    private String fenId;
    @ApiModelProperty(value = "分管领导意见")
    private String fenRen;

    @ApiModelProperty(value = "班子会")
    private String banId;

    @ApiModelProperty(value = "班子会意见")
    private String banRen;

    @ApiModelProperty(value = "创建人")
    private String userId;

    @ApiModelProperty(value = "审核状态")
    private Integer state;


}
